✨ Add EmailLayout layout component#21
Merged
Merged
Conversation
Closes #17. Replaces the abandoned @EnabelLayout/emails/base.html.twig from enabel/layout-bundle. Provides a table-based 600px-wide HTML email layout with configurable header logo (via Symfony Mailer's email.image() helper), Enabel footer (address, no-reply notice, copyright) and a {% block content %} for the email body.
Member
Author
|
Smoke-tested in Impala (consumer app) — symlinked the branch via composer path repo, sent 3 emails through Symfony Mailer to Mailpit. What I verified
Minor doc nitpick (optional) The docs say to register LGTM, ready to tag. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EmailLayoutcomponent that replaces the abandoned@EnabelLayout/emails/base.html.twigfromenabel/layout-bundleemail.image()helper (CID-embedded inline){% block content %}block for the email bodyAPI
All optional with sensible defaults. Logo defaults to
@images/enabel-logo-email.png(consumer registers the Twig namespace and ships the asset).copyrightYearresolves todate('Y')when omitted.Test plan
Closes #17.